package com.itgaoshu.hospitalproject.service.impl;

import com.itgaoshu.hospitalproject.bean.Baoque;
import com.itgaoshu.hospitalproject.bean.Huishou;
import com.itgaoshu.hospitalproject.bean.Ypharmacy;
import com.itgaoshu.hospitalproject.mapper.PharmacyMapper;
import com.itgaoshu.hospitalproject.service.PharmacyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.xml.ws.Action;
import java.util.List;

@Service
@Transactional
public class PharmacyServiceImpl implements PharmacyService {
    @Autowired
    private PharmacyMapper pharmacyMapper;
    @Override
    public List<Ypharmacy> selpharmacy(Ypharmacy ypharmacy) {
        return pharmacyMapper.selpharmacy(ypharmacy);
    }

    @Override
    public int addbaoque(Baoque baoque) {
        return pharmacyMapper.addbaoque(baoque);
    }

    @Override
    public int selbaoqueName(Baoque baoque) {
        return pharmacyMapper.selbaoqueName(baoque);
    }

    @Override
    public int upbaoquenum(Baoque baoque) {
        return pharmacyMapper.upbaoquenum(baoque);
    }

    @Override
    public int delpharymacy(Ypharmacy ypharmacy) {
        return pharmacyMapper.delpharymacy(ypharmacy);
    }

    @Override
    public int addhuishou(Huishou huishou) {
        return pharmacyMapper.addhuishou(huishou);

    }

    @Override
    public List<Huishou> selhuishou(Huishou huishou) {
        return pharmacyMapper.selhuishou(huishou);
    }

    @Override
    public int delhuishou(Huishou huishou) {
        return pharmacyMapper.delhuishou(huishou);
    }
}
